package com.example.buildermode.three;

/**
 * @version 1.0.0
 * @className: TestThree
 * @description:
 * @author: zhangjunfa
 * @date: 2022/6/12 15:47
 */
public class TestThree {
    public static void main(String[] args) {
        // 指挥者角色
        Director director = new Director();

        //一部电影的产生
        MovieBuilder movieBuilder = new MovieBuilder();
        Product movie = director.bulidProduct(movieBuilder);
        System.out.println(movie.toString());


        // 一部小说的产生
        BookBuilder bookBuilder = new BookBuilder();
        Product book = director.bulidProduct(bookBuilder);
        System.out.println(book.toString());

    }
}
